package com.iotimc.attendancesystem.util;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

/**
 * @author david
 * @date 2017/12/14
 */

public class ImageUtil {

    public static Bitmap bytesToBitmap(byte[] b) {
        if (b.length != 0) {
            return BitmapFactory.decodeByteArray(b, 0, b.length);
        } else {
            return null;
        }
    }
}
